
export function post(data){
  let serviceInfo = wx.getStorageSync('serviceInfo')
  return new Promise((resolve, reject) => {
    wx.request({
      url: serviceInfo.serviceAddress + serviceInfo.interfaceInfo,
      method: 'POST',
      data: data,
      success (res) {
        resolve(res.data);
      },
      fail(res) {
        console.log('错误');
        console.log(res);
      }
    })
  });
}